package com.wswy.wzcx.ui.wzdb

import com.wswy.wzcx.model.wzdb.AddUserCertEntry

data class CertDataEntry(val name: String,
                    val alias: String,
                    val order: Int,
                    val type: Int){

    var tag: AddUserCertEntry?=null

    companion object{

        val TYPE_VL = 2 // 行驶证
        val TYPE_DL = 4 // 驾驶证

        val TYPE_USER_FACE = 5

        val TYPE_CVA = 6

        val TYPE_OTHER = 100


    }
}

object WzdbMaps {

    val photoMap = hashMapOf<String,CertDataEntry>().apply {

        put("VLOF",CertDataEntry("行驶证正本正面","VLOF",100,CertDataEntry.TYPE_VL))
        put("VLOB",CertDataEntry("行驶证正本背面","VLOB",101,CertDataEntry.TYPE_VL))
        put("VLCF",CertDataEntry("行驶证副本正面","VLCF",102,CertDataEntry.TYPE_VL))
        put("VLCB",CertDataEntry("行驶证副本背面","VLCB",103,CertDataEntry.TYPE_VL))

        put("DLOF",CertDataEntry("驾驶证正本正面","DLOF",200,CertDataEntry.TYPE_DL))
        put("DLOB",CertDataEntry("驾驶证正本背面","DLOB",201,CertDataEntry.TYPE_DL))
        put("DLCF",CertDataEntry("驾驶证副本正面","DLCF",202,CertDataEntry.TYPE_DL))
        put("DLCB",CertDataEntry("驾驶证副本背面","DLCB",203,CertDataEntry.TYPE_DL))


        put("PWD",CertDataEntry("决定书照片","PWD",301,CertDataEntry.TYPE_OTHER))

        put("CLIVTA",CertDataEntry("交强险图片","CLIVTA",302,CertDataEntry.TYPE_CVA))

        put("HC",CertDataEntry("上游办理凭证图片","HC",303,CertDataEntry.TYPE_OTHER))

        put("OUP",CertDataEntry("车主上半身自拍照","OUP",400,CertDataEntry.TYPE_USER_FACE))

    }

}